package com.farmer.pojo;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.util.List;

import lombok.Data;

/**
 * @TableName comment
 */
@TableName(value ="comment")
@Data
public class Comment implements Serializable {
    private Integer id;

    private Integer userId;

    private Integer policyId;

    private String time;

    private Integer parentId;

    private String content;

    private String userName;

    private String avatar;

    @TableField(exist = false)
    private List<Comment> children;


    private String policyTitle;

//    private String tmp="";

    private static final long serialVersionUID = 1L;
}